<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<s:head theme="ajax"/>
		<title>My JSP 'updateTemplate.jsp' starting page</title>
		
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		
		<link rel="stylesheet" type="text/css" href="../css/content.css">
		<link rel="stylesheet" type="text/css" href="../css/template.css">
		<script type="text/javascript" src="../js/common.js"></script>
		<script type="text/javascript" src="../js/template.js"></script>
	</head>

	<body>
		<div id="template_container">
			<div class="template_left">
				<form action="otherSet/upload.action" method="post"
					target="upload-target" onsubmit="return checkTemplate()"
					enctype="multipart/form-data" name="template_upload">
					<div class="template_left_1">
						<span>上传模板:</span>
						<span> <input type="file" name="template" id="template" />
						</span>
					</div>
					<div class="template_left_2">
						<input type="submit" value="上传"  />
					</div>
				</form>
			</div>
			<s:url id="showT" action="otherSet/showTemplate"></s:url>
			<div class="template_right">
				<s:div href="%{showT}"
					listenTopics="showTemplate" theme="ajax" >
	
				</s:div>
			</div>
		</div>

		<div id="upload_contant" class="container" style="display: none;">
			<div class="c_head">
				<span class="c_head_1">上传模板</span>
				<span class="c_head_2"> <a href="javascript:void(0)"> <IMG
							src="../img/close2.gif" onclick="closeTemplate()"> </a> </span>
			</div>
			<div>
				<iframe id="uploadFrame" name="upload-target" height=50px
							" width="100%" src="../admin/adminResult.jsp"
							frameborder="0" scrolling="no"></iframe>
			</div>
		</div>
		<div id="delete_contant" class="container" style="display: none;">
			<div class="c_head">
				<span class="c_head_1">删除模板</span>
				<span class="c_head_2"> <a href="javascript:void(0)"> <IMG
							src="../img/close2.gif" onclick="closeDelete()"> </a> </span>
			</div>
			<div id="deleteResult">
			</div>
		</div>
		<div id="mask" style="display: none"></div>
	</body>
</html>
